package org.track.web.entity;

import java.io.Serializable;
import javax.validation.constraints.Min;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author josdem (joseluis.delacruz@gmail.com)
 */

public class TrackRow implements Serializable {
	private static final long serialVersionUID = -7619338946433403597L;
	private long id;

	@NotEmpty
	private String artist;

	@NotEmpty
	private String title;

	@NotEmpty
	private String album;

	@Min(1)
	private int trackNumber;

	@Min(1)
	private int length;
	private Status status;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	public int getTrackNumber() {
		return trackNumber;
	}

	public void setTrackNumber(int trackNumer) {
		this.trackNumber = trackNumer;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}
	
	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}
}
